
/*** File js/mobile.js BEGIN ***/
function isMobileDevice() {
	$mobStrDefList = new Array(
		"Blackberry",
		"Blazer",
		"Handspring",
		"iPhone",
		"iPod",
		"Kyocera",
		"LG",
		"Motorola",
		"Nokia",
		"Palm",
		"PlayStation Portable",
		"Samsung",
		"Smartphone",
		"SonyEricsson",
		"Symbian",
		"WAP",
		"Windows CE",
		"IEMobile",
		"NetFront",
		"PlayStation",
		"PLAYSTATION",
		"like Mac OS X",
		"MIDP",
		"UP.Browser",
		"Nintendo",
		"Android",
		"Opera Mobi"
	);
	var $res = false;
	var i=0;
	var browser = navigator.userAgent;
	while (i<$mobStrDefList.length && $res==false) {
		if (browser.indexOf($mobStrDefList[i])>-1) {
			$res = true;
		}
		i++;
	}
	return $res;
}
var is_mobile = isMobileDevice();

function isDeviceForNotFlashContent() {
	$mobStrDefList = new Array(
		"Blackberry",
		"iPhone",
		"iPod",
		"Android"
	);
	var $res = false;
	var i=0;
	var browser = navigator.userAgent;
	while (i<$mobStrDefList.length && $res==false) {
		if (browser.toLowerCase().indexOf($mobStrDefList[i].toLowerCase())>-1) {
			$res = true;
		}
		i++;
	}
	return $res;
}
var device_for_not_flash_content = isDeviceForNotFlashContent();
/*** File js/mobile.js END ***/

/*** File js/layout_functions.js BEGIN ***/
function set_selected_item(selector_id, item_value)
{
	if(item_value == '') return;
	var selector = document.getElementById(selector_id);
	for(i=0;i<selector.options.length;i++)
	{
		if (selector.options[i].value==item_value)
		{
			selector.options[i].selected=true;
		}
	}
}

var max_images_in_gallery = 100;
function show_links_list(first_img, div_prefix, div_prev, div_next, display_type) {
	//Hide all links
	for(i=1; i<=max_images_in_gallery; i++) {
		if(g(div_prefix+i)) {
			g(div_prefix+i).style.display = 'none';
		}
	}

	//Show just "active_img_in_list" links
	for(i=first_img; i<(first_img+active_img_in_list); i++) {
		if(g(div_prefix+i)) {
			g(div_prefix+i).style.display = display_type;
		}
	}

	//Hide or show arrows
	if(div_next!='' && g(div_next)) {
		if(g(div_prefix+(i))) {
			g(div_next).style.display = display_type;
		} else {
			g(div_next).style.display = 'none';
		}
	}
	if(div_prev!='' && g(div_prev)) {
		if(g(div_prefix+(first_img-1))) {
			g(div_prev).style.display = display_type;
		} else {
			g(div_prev).style.display = 'none';
		}
	}

}

function getElementsByCSSClass(elm, tag, className) {
	var testClass = new RegExp("(^|\\s)" + className + "(\\s|$)");
	var elements = elm.getElementsByTagName(tag);
	var returnElements = new Array();
	for(var i=0; i<elements.length; i++){
		var current = elements[i];
		if(testClass.test(current.className)){
			returnElements.push(current);
		}
	}
	return (returnElements);
}

function hideElementsByClassName(id, tag, className) {
	var elms = getElementsByCSSClass(document.getElementById(id), tag, className);
	for (var i=0; i<elms.length; i++) {
		elms[i].style.display = "none";
	}
}

function manage_menu_items_visibility(id, country) {
	hideElementsByClassName(id, "ul", "itemVisibleModeHIDDEN");
	hideElementsByClassName(id, "li", "itemVisibleModeHIDDEN");
	if(country == "US") {
		hideElementsByClassName(id, "ul", "itemVisibleModeUS");
		hideElementsByClassName(id, "li", "itemVisibleModeUS");
	} else {
		hideElementsByClassName(id, "ul", "itemVisibleModeREST_WORLD");
		hideElementsByClassName(id, "li", "itemVisibleModeREST_WORLD");
	}
}

function addOnLoadEvent(action) {
	if(window.addEventListener) { // Mozilla, Netscape, Firefox
		window.addEventListener('load', action, false);
	} else { // IE
		window.attachEvent('onload', action);
	}
}

function addOnClickEvent(element, action) {
	if(element.addEventListener) { // Mozilla, Netscape, Firefox
		element.addEventListener('click', action, false);
	} else { // IE
		element.attachEvent('onclick', action);
	}
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
/*** File js/layout_functions.js END ***/

/*** File js/ajax-son.js BEGIN ***/
function ajax_son(file)
{
	this.xmlHttp = null;

	this.actionFile		= file;
	this.asynchronous	= true;
	this.method 		= 'post';
	this.contentType 	= 'application/x-www-form-urlencoded';
	this.encoding 		= 'UTF-8';
	this.executeJS		= false;
	this.executeJSON	= false;
	// internal
	this.url		= '';
	this.params		= '';
	this.addsHeader		= '';

	this.vars		= new Array();

	this.responseStatus 	= new Array(2);


	this.onLoading = function() { };
  	this.onLoaded = function() { };
  	this.onInteractive = function() { };
  	this.onComplete = function() { };
  	this.onError = function() { };
	this.onFail = function() { };

	this.xmlHttpVersions = ["MSXML2.XMLHTTP.6.0",
				"MSXML2.XMLHTTP.5.0",
				"MSXML2.xmlHttp.4.0",
				"MSXML2.xmlHttp.3.0",
				"MSXML2.xmlHttp",
				"Microsoft.xmlHttp"];
	/**
	*  Create XMLHttpRequest
	**/
	this.create = function()
	{
		try
 		{
  			this.xmlHttp = new XMLHttpRequest();
 		}
 		catch(e)
 		{
			for(var i = 0; i < this.xmlHttpVersions.length && !this.xmlHttp; i++)
  			{
	   			try
   				{
    					this.xmlHttp = new ActiveXObject(this.xmlHttpVersions[i]);
   				}
   				catch (e)
				{ }
  			}
 		}

 		if(!this.xmlHttp)
		{
 			this.failed = true;
		}
	};

	this.run = function(params)
	{
		if(this.failed)
		{
			this.onFail();
		}
		else
		{
			this.params = this.encodeURL(params);
			var self = this;
			var headers = {
					'X-Requested-With': 'xmlHttpRequest',
	      				'Accept': 'text/javascript, text/html, application/xml, text/xml, */*'
				      };

			// add user headers
			if(typeof this.addsHeader == 'object')
			{
				for(var i = 0; i < this.addsHeader.length; i++)
				{
					tmp = this.addsHeader[i].split(':');
					headers[tmp[0]] = tmp[1];
				}
			}

			if(this.method == 'post')
			{
				headers['Content-Type'] = this.contentType + (this.encoding ? '; charset=' + this.encoding : '');
				headers['Content-Length'] = this.params.length;
				this.url = this.actionFile;
			}
			else
			{
				this.url = this.actionFile + '?' + this.params;
			}

			this.xmlHttp.open(this.method.toUpperCase(), this.url, this.asynchronous);

			for(var name in headers)
			{
				try
				{
					this.xmlHttp.setRequestHeader(name, headers[name]);
				}
				catch (e)
				{ }
			}

			this.xmlHttp.onreadystatechange = function()
			{
				switch (self.xmlHttp.readyState)
				{
					case 1:
						self.onLoading();
						break;
					case 2:
						self.onLoaded();
						break;
					case 3:
						self.onInteractive();
						break;
					case 4:
						self.response 		= self.xmlHttp.responseText;
						self.responseXML 	= self.xmlHttp.responseXML;
						self.responseStatus[0] 	= self.xmlHttp.status;
						self.responseStatus[1] 	= self.xmlHttp.statusText;

						if (self.executeJS && self.getHeader('Content-Type') == 'text/javascript')
						{
							self.evalJS();
						}

						if (self.responseStatus[0] == "200")
						{
							self.onComplete();
						}
						else
						{
							self.onError();
						}
						break;
				}
			};
			
			if(this.method == 'post')
			{
				this.xmlHttp.send(this.params);
			}
			else
			{
				this.xmlHttp.send(null);
			}
			
			if (!this.asynchronous)
			{
				if(this.xmlHttp.status == 200)
				{
					this.response	= this.xmlHttp.responseText;
					this.onComplete();
				}
			}
		}
	};

	/**
	*  Get header by "name"
	**/
	this.getHeader = function(name)
	{
		try
		{
			return this.xmlHttp.getResponseHeader(name);
		}
		catch(e)
		{
			return false;
		}
	};

	/**
	*  Execute Javascript
	**/
	this.evalJS = function()
	{
		try
		{
			eval(this.response);
		}
		catch(e)
		{ }
	};

	/*
	this.evalJSON = function()
	{
		//
	};
	*/
	
	this.encodeURL  = function(params)
	{
		
		var _array = params.split('&');
		
		for (i = 0; i < _array.length; i++)
		{
			var urlVars = _array[i].split("=");
			this.vars[urlVars[0]] = encodeURIComponent(urlVars[1]);
		}
		
		var tmp = new Array();

		var tmpURL = "";

		for(key in this.vars)
		{
			if (typeof(this.vars[key]) != 'function')
			{
				tmp[tmp.length] = key + "=" + this.vars[key];
			}
		}

		return tmp.join("&");
	};

	this.create();
}
/*** File js/ajax-son.js END ***/

/*** File js/flash_detect_functions.js BEGIN ***/
var global_var_admin_template	= '';
var global_var_detect_flash_uri = '';
var global_var_detect_flash_loc = '';

function isFlashDetected() {
	var hasFlash = false;
	if(window.ActiveXObject)
	{
		try
		{
			for(var i = 7; i < 10; i++)
			{
				try
				{
					var checkHasFlash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
				}
				catch(ee)
				{
					var checkHasFlash = false;
				}
				if(checkHasFlash)
				{
					hasFlash = true;
				}
			}
		}
		catch(e)
		{}
	}

	else if(navigator.plugins)
	{
		if(navigator.plugins["Shockwave Flash"])
		{
			hasFlash = true;
		}
	}
	return hasFlash;
}

function flash_out_redirect()
{
	var uri 	= global_var_detect_flash_uri;
	var loc		= global_var_detect_flash_loc;

	if (location.hash != '') {
		loc += location.hash;
	}
	var start = location.href.length - uri.length;

	if (loc != location.href.substring((start < 0 ? 0 : start), location.href.length))
	{
		if(global_var_admin_template == "yes")
		{
			return;
		}
		else
		{
			location.replace(loc);
		}
	}
}

function init_flash_detecting()
{
	if(!isFlashDetected())
	{
		flash_out_redirect();
	}
}

/*** File js/flash_detect_functions.js END ***/

/*** File js/LibUtils.js BEGIN ***/
/***** Page open functions *************************/
function openWindow(thePage,popW,popH,popL,popT,flgTitle,flgTool,flgStatus,flgMenu,flgResize,flgScroll,flgLocation)
{
	if (thePage.length > 0)
	{
		popW.toString().length > 0?param = "width=" + popW + ",":param ="";
		popH.toString().length  > 0?param += "height=" + popH+ ",":param +="";
		popL.toString().length  > 0?param += "left=" + popL+ ",":param +="";
		popT.toString().length  > 0?param += "top=" + popT+ ",":param +="";
		param+="titlebar=" + flgTitle.toString() + ",";
		param+="toolbar=" + flgTool.toString() + ",";
		param+="status=" + flgStatus.toString() + ",";
		param+="menubar=" + flgMenu.toString() + ",";
		param+="resizable=" + flgResize.toString() + ",";
		param+="scrollbars=" + flgScroll.toString() + ",";
		param+="location=" + flgLocation.toString() + ",";
		param=param.substr(0,param.length-1);
		return window.open(thePage,'test',param);
	}
}

function rw_openPopup(thePage,idWin,popW,popH)
{
	w = screen.availWidth;
	h = screen.availHeight;
	var leftPos = (w-popW)/2,  topPos = (h-popH)/2;
	return window.open(thePage,idWin,"left=" + leftPos + ",top=" + topPos + ",width="+ popW +",height=" + popH  + ",toolbar=no,status=no,titlebar=no,menubar=no,resizable=yes,scrollbars=yes")
}

function openDialog(thePage,idWin,popW,popH)
{
	w = screen.availWidth;
	h = screen.availHeight;
	var leftPos = (w-popW)/2,  topPos = (h-popH)/2;
	return window.showModalDialog (thePage,idWin,"dialogLeft:" + leftPos + "px;dialogTop:" + topPos + "px;dialogWidth:"+ popW +"px;dialogHeight:" + popH  + "px;status:no;scroll:no")
}

//obfuscate mailto links in source code until mouseover - link will be <a href=mailto:a@b>c</a>, if c missing then <a href=mailto:a@b>a@b</a>
//note corresponding function in StdTools.asp
function obfuscateMail(a,b,c)
{
  document.write("<a href='YouNeedJavascript' onmouseover=\"this.href='mailto:" + a + "@" + b + "'\" onmouseout=\"this.href='YouNeedJavascript'\">" + (c?c:a+'@'+b) + "</a>");
}

/**************** String trim function **************************/
function trimString (str) {
  str = this != window? this : str;
  return str.replace(/^\s+/g, '').replace(/\s+$/g, '');
}
String.prototype.trim = trimString;

/**************** Helper functions for keycheck functions below *********************************/
function isControlKey(key)
{
  var controlKeys ="8;9;13;27;37;38;39;40;35;36;";	
	return (controlKeys.indexOf(key+";") >= 0) 
}

function GetKeyCode(e)
{
  if(!e)e = window.event;
  return(e.which?e.which:e.keyCode);
}
/**************** Key check functions *************************************/
// Use this code like so: onKeyPress="return IsDigit(event);"
// Note that this won't prevent copy/paste with the mouse! 

function IsDigit(e)
{// whole numbers only (8=delete)
  var key = GetKeyCode(e);
  if(((key < 48) || (key > 57)) && (!isControlKey(key))) {return false};
}
function IsPosNumber(e)
{// positive decimal numbers (46 = '.')
  var key = GetKeyCode(e);
	if(((key < 48) || (key > 57)) && (key != 46) && (!isControlKey(key))) return false;
}

function IsWholeNumber(e)
{// positive or negative Whole numbers (45= '-')
  var key = GetKeyCode(e);
	if(((key < 48) || (key > 57)) && (key != 45) && (!isControlKey(key))) return false;
}

function IsNumber(e)
{// positive or negative decimal numbers (45='-', 46 = '.')
  var key = GetKeyCode(e);
	if(((key < 48) || (key > 57)) && (key != 45) && (key != 46) && (!isControlKey(key))) return false;
}

//http://www.remote.org/jochen/mail/info/chars.html
function isValidEmail(s) {
  mail = "^.+@[^\\.].*\\.[a-zA-Z]{2,}$"; //probably over-tolerant, but doesn't really matter
  //was: mail = "^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]{2,4}$";
  var reMail = new RegExp(mail);
  return(reMail.test(s));
}

//Check for MULTIPLE comma or semi-colon separated emails
function isValidEmails(s)
{ 	      	
  myregexp=/.+@[^\.].*\.[a-zA-Z]{2,}([,;]\s*.+@[^\.].*\.[a-zA-Z]{2,})*/;
  //was: myregexp=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*/;
  return(s.match(myregexp));
}

function isURL (s) {
    machine = "[A-Za-z0-9]+((\\.|(\\-)+)[A-Za-z0-9]+)*(/[A-Za-z0-9]+)?";
    var reURL = new RegExp("^" + machine + "$");
    return (reURL.test(s));
}

function isDate(s)
{
  if(s=="") 
    return(true);
  var arr = s.split(".");
  d=Number(arr[0]);
  m=Number(arr[1])-1;
  y=Number(arr[2]);
  with (new Date(y,m,d)) {
      return (getMonth() == m && getDate() == d && getFullYear() == y);
  }
}
/************* Helper functions *********************/
//shortcuts
function g(id) {return document.getElementById(id);}
//shortcuts
function gv(id) {return g(id).value.trim();}

//stop event propagation
function stopPropagate(e)
{
	if (!e) var e = window.event;
	e.cancelBubble = true;
	e.returnValue=false;
	if (e.stopPropagation) e.stopPropagation();
	if (e.preventDefault) e.preventDefault();
}

//function to add/remove multiple classes
function classAdd(el,cls,addOrRemove)
{
  if(el.className) { //already has a class
    if(el.className.indexOf(cls)>=0) {
      if(!addOrRemove) // if has this class and remove 
        el.className=el.className.replace(cls,'').trim();
    }
    else { //doesn't have this class, but has a class
      if(addOrRemove) //only add if necessary!
        el.className+=' ' + cls;
    }
  }
  else { //no class yet
    if(addOrRemove) //if add
      el.className=cls;  
  }
}

//form reset
function doReset(frm)
{
  coll=frm.elements;
  for (i=0; i<coll.length;i++)
  {
    switch(coll[i].type)
    {
      case "textarea" :
      case "text" :
  			coll[i].value=""; 
  			break;
      case "select-multiple" :
  			for (j=0; j<coll[i].options.length;j++)
  				coll[i].options[j].selected=false;
  			break;
      case "checkbox" :
  	  	coll[i].checked=false;
  			break;
      case "hidden" :
  			break;
      default :
  	  	coll[i].value="-1";
  			break;
    }
  }
  return false;
}
/************** IE HACK *******************/
// hack for ie/opera getElementsByName bug
// note this will slow down the script, the more elements there are in the page 
function getByName(name)
{
  var arr = new Array();
  var iarr=0;
  all=document.all;
     
  for(i=0;i<all.length;i++) {
    if (all[i].getAttribute('name')==name) //all[i].name works except in opera...
      arr[iarr++]=all[i];
  }    
  return(arr)  
}
//if mozilla/gecko, this isn't necessary
if(document.all)
  document.getElementsByName = getByName;
/************* Text area length limit **********************************/
function TextAreaMax(e, maxLen)
{// limit entry in text area
 // Use this code like so: onKeyPress="event.returnValue=TextAreaMax(event,500);"
  if (GetKeyCode(e)==8) return true;  // backspace allowed!
  if(!e)e = window.event;
  len = e.srcElement?e.srcElement.value.length:e.target.value.length; 
  return (len <= maxLen)
}

function check_length(inputtxt, maxLen, ev)
{
	if (GetKeyCode(ev)==8) return true;  // backspace allowed!
	if (GetKeyCode(ev)==37) return true;  // left allowed!
	if (GetKeyCode(ev)==38) return true;  // up allowed!
	if (GetKeyCode(ev)==39) return true;  // right allowed!
	if (GetKeyCode(ev)==40) return true;  // down allowed!
	if (inputtxt.value.length >= maxLen) {
		// Alert message if maximum limit is reached.
		// If required Alert can be removed.
		var msg = "You have reached your maximum limit of characters allowed";
		alert(msg);
		// Reached the Maximum length so trim the textarea
		inputtxt.value = inputtxt.value.substring(0, maxLen);
		//this.blur();
		return true;
	}
}

/*************** Flash object embedding (to be proved) ************************************************/
/**
 * FlashObject v1.3c: Flash detection and embed - http://blog.deconcept.com/flashobject/
 *
 * FlashObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof com=="undefined"){var com=new Object();}
if(typeof com.deconcept=="undefined"){com.deconcept=new Object();}
if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object();}
if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object();}
com.deconcept.FlashObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.createElement||!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
this.useExpressInstall=_7;
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new com.deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}
};
com.deconcept.FlashObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},createParamTag:function(n,v){
var p=document.createElement("param");
p.setAttribute("name",n);
p.setAttribute("value",v);
return p;
},getVariablePairs:function(){
var _19=new Array();
var key;
var _1b=this.getVariables();
for(key in _1b){_19.push(key+"="+_1b[key]);}
return _19;
},getFlashHTML:function(){
var _1c="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){
this.addVariable("MMplayerType","PlugIn");
}
_1c="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_1c+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1d=this.getParams();
for(var key in _1d){_1c+=[key]+"=\""+_1d[key]+"\" ";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_1c+="flashvars=\""+_1f+"\"";}
_1c+="/>";
}else{
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_1c="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_1c+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />\"";
var _20=this.getParams();
for(var key in _20){_1c+="<param name=\""+key+"\" value=\""+_20[key]+"\" />";}
var _22=this.getVariablePairs().join("&");
if(_22.length>0){_1c+="<param name=\"flashvars\" value=\""+_22+"\" />";
}_1c+="</object>";}
return _1c;
},write:function(_23){
if(this.useExpressInstall){
var _24=new com.deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_24)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}
}else{this.setAttribute("doExpressInstall",false);}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _23=="string")?document.getElementById(_23):_23;
n.innerHTML=this.getFlashHTML();
}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}}};
com.deconcept.FlashObjectUtil.getPlayerVersion=function(_26,_27){
var _28=new com.deconcept.PlayerVersion(0,0,0);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_28=new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{
try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;axo!=null;i++){
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
_28=new com.deconcept.PlayerVersion([i,0,0]);}}
catch(e){}
if(_26&&_28.major>_26.major){return _28;}
if(!_26||((_26.minor!=0||_26.rev!=0)&&_28.major==_26.major)||_28.major!=6||_27){
try{
_28=new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
}catch(e){}}}
return _28;
};
com.deconcept.PlayerVersion=function(_2c){
this.major=parseInt(_2c[0])||0;
this.minor=parseInt(_2c[1])||0;
this.rev=parseInt(_2c[2])||0;
};
com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}
return true;
};
com.deconcept.util={getRequestParameter:function(_2e){
var q=document.location.search||document.location.href.hash;
if(q){var _30=q.indexOf(_2e+"=");
var _31=(q.indexOf("&",_30)>-1)?q.indexOf("&",_30):q.length;
if(q.length>1&&_30>-1){
return q.substring(q.indexOf("=",_30)+1,_31);}}return "";
},removeChildren:function(n){
while(n.hasChildNodes()){
n.removeChild(n.firstChild);}}};
if(Array.prototype.push==null){
Array.prototype.push=function(_33){
this[this.length]=_33;
return this.length;};}
var getQueryParamValue=com.deconcept.util.getRequestParameter;
var FlashObject=com.deconcept.FlashObject;

/************* Right click desactivation for links or images **********************************/
// oncontextmenu=nocontextmenu()
function nocontextmenu() 
{
	event.cancelBubble = true
	event.returnValue = false;
	return false; 
}

// onmousedown=norightclick()
function norightclick(e)
{
	if (window.Event)
	{
		if (e.which == 2 || e.which == 3)
		return false;
	} else
		if (event.button == 2 || event.button == 3)
		{ 
			event.cancelBubble = true
			event.returnValue = false;
			return false;
		}
}
/************************* end Right click desactivation ***********************************/

//-----------------------------------------------------------------------------------------------------
// tdc : 17.10.2007 The following JavaScript code was added to test whether this new version of the Flash
// player supports the FLV new Flash format 
//-----------------------------------------------------------------------------------------------------
/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept == "undefined") var deconcept = new Object();
if(typeof deconcept.util == "undefined") deconcept.util = new Object();
if(typeof deconcept.SWFObjectUtil == "undefined") deconcept.SWFObjectUtil = new Object();
deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey) {
	if (!document.getElementById) { return; }
	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
	this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
	this.params = new Object();
	this.variables = new Object();
	this.attributes = new Array();
	if(swf) { this.setAttribute('swf', swf); }
	if(id) { this.setAttribute('id', id); }
	if(w) { this.setAttribute('width', w); }
	if(h) { this.setAttribute('height', h); }
	if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); }
	this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
	if (!window.opera && document.all && this.installedVer.major > 7) {
		// only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
		deconcept.SWFObject.doPrepUnload = true;
	}
	if(c) { this.addParam('bgcolor', c); }
	var q = quality ? quality : 'high';
	this.addParam('quality', q);
	this.setAttribute('useExpressInstall', false);
	this.setAttribute('doExpressInstall', false);
	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
	this.setAttribute('xiRedirectUrl', xir);
	this.setAttribute('redirectUrl', '');
	if(redirectUrl) { this.setAttribute('redirectUrl', redirectUrl); }
}
deconcept.SWFObject.prototype = {
	useExpressInstall: function(path) {
		this.xiSWFPath = !path ? "expressinstall.swf" : path;
		this.setAttribute('useExpressInstall', true);
	},
	setAttribute: function(name, value){
		this.attributes[name] = value;
	},
	getAttribute: function(name){
		return this.attributes[name];
	},
	addParam: function(name, value){
		this.params[name] = value;
	},
	getParams: function(){
		return this.params;
	},
	addVariable: function(name, value){
		this.variables[name] = value;
	},
	getVariable: function(name){
		return this.variables[name];
	},
	getVariables: function(){
		return this.variables;
	},
	getVariablePairs: function(){
		var variablePairs = new Array();
		var key;
		var variables = this.getVariables();
		for(key in variables){
			variablePairs[variablePairs.length] = key +"="+ variables[key];
		}
		return variablePairs;
	},
	getSWFHTML: function() {
		var swfNode = "";
		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
			if (this.getAttribute("doExpressInstall")) {
				this.addVariable("MMplayerType", "PlugIn");
				this.setAttribute('swf', this.xiSWFPath);
			}
			swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'"';
			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
			var params = this.getParams();
			 for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }
			var pairs = this.getVariablePairs().join("&");
			 if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
			swfNode += '/>';
		} else { // PC IE
			if (this.getAttribute("doExpressInstall")) {
				this.addVariable("MMplayerType", "ActiveX");
				this.setAttribute('swf', this.xiSWFPath);
			}
			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'">';
			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
			var params = this.getParams();
			for(var key in params) {
			 swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
			}
			var pairs = this.getVariablePairs().join("&");
			if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
			swfNode += "</object>";
		}
		return swfNode;
	},
	write: function(elementId){
		if(this.getAttribute('useExpressInstall')) {
			// check to see if we need to do an express install
			var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);
			if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
				this.setAttribute('doExpressInstall', true);
				this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
				document.title = document.title.slice(0, 47) + " - Flash Player Installation";
				this.addVariable("MMdoctitle", document.title);
			}
		}
		if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){
			var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
			n.innerHTML = this.getSWFHTML();
			return true;
		}else{
			if(this.getAttribute('redirectUrl') != "") {
				document.location.replace(this.getAttribute('redirectUrl'));
			}
		}
		return false;
	}
}

/* ---- detection functions ---- */
deconcept.SWFObjectUtil.getPlayerVersion = function(){
	var PlayerVersion = new deconcept.PlayerVersion([0,0,0]);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
		}
	}else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0){ // if Windows CE
		var axo = 1;
		var counter = 3;
		while(axo) {
			try {
				counter++;
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
//				document.write("player v: "+ counter);
				PlayerVersion = new deconcept.PlayerVersion([counter,0,0]);
			} catch (e) {
				axo = null;
			}
		}
	} else { // Win IE (non mobile)
		// do minor version lookup in IE, but avoid fp6 crashing issues
		// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
		try{
			var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		}catch(e){
			try {
				var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
				PlayerVersion = new deconcept.PlayerVersion([6,0,21]);
				axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
			} catch(e) {
				if (PlayerVersion.major == 6) {
					return PlayerVersion;
				}
			}
			try {
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			} catch(e) {}
		}
		if (axo != null) {
			PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
		}
	}
	return PlayerVersion;
}
deconcept.PlayerVersion = function(arrVersion){
	this.major = arrVersion[0] != null ? parseInt(arrVersion[0]) : 0;
	this.minor = arrVersion[1] != null ? parseInt(arrVersion[1]) : 0;
	this.rev = arrVersion[2] != null ? parseInt(arrVersion[2]) : 0;
}
deconcept.PlayerVersion.prototype.versionIsValid = function(fv){
	if(this.major < fv.major) return false;
	if(this.major > fv.major) return true;
	if(this.minor < fv.minor) return false;
	if(this.minor > fv.minor) return true;
	if(this.rev < fv.rev) return false;
	return true;
}
/* ---- get value of query string param ---- */
deconcept.util = {
	getRequestParameter: function(param) {
		var q = document.location.search || document.location.hash;
		if (param == null) { return q; }
		if(q) {
			var pairs = q.substring(1).split("&");
			for (var i=0; i < pairs.length; i++) {
				if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
					return pairs[i].substring((pairs[i].indexOf("=")+1));
				}
			}
		}
		return "";
	}
}
/* fix for video streaming bug */
deconcept.SWFObjectUtil.cleanupSWFs = function() {
	var objects = document.getElementsByTagName("OBJECT");
	for (var i = objects.length - 1; i >= 0; i--) {
		objects[i].style.display = 'none';
		for (var x in objects[i]) {
			if (typeof objects[i][x] == 'function') {
				objects[i][x] = function(){};
			}
		}
	}
}
// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
if (deconcept.SWFObject.doPrepUnload) {
	if (!deconcept.unloadSet) {
		deconcept.SWFObjectUtil.prepUnload = function() {
			__flash_unloadHandler = function(){};
			__flash_savedUnloadHandler = function(){};
			window.attachEvent("onunload", deconcept.SWFObjectUtil.cleanupSWFs);
		}
		window.attachEvent("onbeforeunload", deconcept.SWFObjectUtil.prepUnload);
		deconcept.unloadSet = true;
	}
}
/* add document.getElementById if needed (mobile IE < 5) */
if (!document.getElementById && document.all) { document.getElementById = function(id) { return document.all[id]; }}

/* add some aliases for ease of use/backwards compatibility */
var getQueryParamValue = deconcept.util.getRequestParameter;
var FlashObject = deconcept.SWFObject; // for legacy support
var SWFObject = deconcept.SWFObject;

/*** File js/LibUtils.js END ***/

/*** File js/SWFObjectUtils.js BEGIN ***/
//-----------------------------------------------------------------------------------------------------
// tdc : 17.10.2007 The following JavaScript code was added to test whether this new version of the Flash
// player supports the FLV new Flash format 
//-----------------------------------------------------------------------------------------------------
/**
 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 */
if(typeof deconcept == "undefined") var deconcept = new Object();
if(typeof deconcept.util == "undefined") deconcept.util = new Object();
if(typeof deconcept.SWFObjectUtil == "undefined") deconcept.SWFObjectUtil = new Object();
deconcept.SWFObject = function(swf, id, w, h, ver, c, quality, xiRedirectUrl, redirectUrl, detectKey) {
	if (!document.getElementById) { return; }
	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
	this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);
	this.params = new Object();
	this.variables = new Object();
	this.attributes = new Array();
	if(swf) { this.setAttribute('swf', swf); }
	if(id) { this.setAttribute('id', id); }
	if(w) { this.setAttribute('width', w); }
	if(h) { this.setAttribute('height', h); }
	if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); }
	this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion();
	if (!window.opera && document.all && this.installedVer.major > 7) {
		// only add the onunload cleanup if the Flash Player version supports External Interface and we are in IE
		deconcept.SWFObject.doPrepUnload = true;
	}
	if(c) { this.addParam('bgcolor', c); }
	var q = quality ? quality : 'high';
	this.addParam('quality', q);
	this.setAttribute('useExpressInstall', false);
	this.setAttribute('doExpressInstall', false);
	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
	this.setAttribute('xiRedirectUrl', xir);
	this.setAttribute('redirectUrl', '');
	if(redirectUrl) { this.setAttribute('redirectUrl', redirectUrl); }
}
deconcept.SWFObject.prototype = {
	useExpressInstall: function(path) {
		this.xiSWFPath = !path ? "expressinstall.swf" : path;
		this.setAttribute('useExpressInstall', true);
	},
	setAttribute: function(name, value){
		this.attributes[name] = value;
	},
	getAttribute: function(name){
		return this.attributes[name];
	},
	addParam: function(name, value){
		this.params[name] = value;
	},
	getParams: function(){
		return this.params;
	},
	addVariable: function(name, value){
		this.variables[name] = value;
	},
	getVariable: function(name){
		return this.variables[name];
	},
	getVariables: function(){
		return this.variables;
	},
	getVariablePairs: function(){
		var variablePairs = new Array();
		var key;
		var variables = this.getVariables();
		for(key in variables){
			variablePairs[variablePairs.length] = key +"="+ variables[key];
		}
		return variablePairs;
	},
	getSWFHTML: function() {
		var swfNode = "";
		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
			if (this.getAttribute("doExpressInstall")) {
				this.addVariable("MMplayerType", "PlugIn");
				this.setAttribute('swf', this.xiSWFPath);
			}
			swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'"';
			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
			var params = this.getParams();
			 for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }
			var pairs = this.getVariablePairs().join("&");
			 if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }
			swfNode += '/>';
		} else { // PC IE
			if (this.getAttribute("doExpressInstall")) {
				this.addVariable("MMplayerType", "ActiveX");
				this.setAttribute('swf', this.xiSWFPath);
			}
			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'">';
			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
			var params = this.getParams();
			for(var key in params) {
			 swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
			}
			var pairs = this.getVariablePairs().join("&");
			if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}
			swfNode += "</object>";
		}
		return swfNode;
	},
	write: function(elementId){
		if(this.getAttribute('useExpressInstall')) {
			// check to see if we need to do an express install
			var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);
			if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
				this.setAttribute('doExpressInstall', true);
				this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
				document.title = document.title.slice(0, 47) + " - Flash Player Installation";
				this.addVariable("MMdoctitle", document.title);
			}
		}
		if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){
			var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
			n.innerHTML = this.getSWFHTML();
			return true;
		}else{
			if(this.getAttribute('redirectUrl') != "") {
				document.location.replace(this.getAttribute('redirectUrl'));
			}
		}
		return false;
	}
}

/* ---- detection functions ---- */
deconcept.SWFObjectUtil.getPlayerVersion = function(){
	var PlayerVersion = new deconcept.PlayerVersion([0,0,0]);
	if(navigator.plugins && navigator.mimeTypes.length){
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
		}
	}else if (navigator.userAgent && navigator.userAgent.indexOf("Windows CE") >= 0){ // if Windows CE
		var axo = 1;
		var counter = 3;
		while(axo) {
			try {
				counter++;
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+ counter);
//				document.write("player v: "+ counter);
				PlayerVersion = new deconcept.PlayerVersion([counter,0,0]);
			} catch (e) {
				axo = null;
			}
		}
	} else { // Win IE (non mobile)
		// do minor version lookup in IE, but avoid fp6 crashing issues
		// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
		try{
			var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		}catch(e){
			try {
				var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
				PlayerVersion = new deconcept.PlayerVersion([6,0,21]);
				axo.AllowScriptAccess = "always"; // error if player version < 6.0.47 (thanks to Michael Williams @ Adobe for this code)
			} catch(e) {
				if (PlayerVersion.major == 6) {
					return PlayerVersion;
				}
			}
			try {
				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			} catch(e) {}
		}
		if (axo != null) {
			PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
		}
	}
	return PlayerVersion;
}
deconcept.PlayerVersion = function(arrVersion){
	this.major = arrVersion[0] != null ? parseInt(arrVersion[0]) : 0;
	this.minor = arrVersion[1] != null ? parseInt(arrVersion[1]) : 0;
	this.rev = arrVersion[2] != null ? parseInt(arrVersion[2]) : 0;
}
deconcept.PlayerVersion.prototype.versionIsValid = function(fv){
	if(this.major < fv.major) return false;
	if(this.major > fv.major) return true;
	if(this.minor < fv.minor) return false;
	if(this.minor > fv.minor) return true;
	if(this.rev < fv.rev) return false;
	return true;
}
/* ---- get value of query string param ---- */
deconcept.util = {
	getRequestParameter: function(param) {
		var q = document.location.search || document.location.hash;
		if (param == null) { return q; }
		if(q) {
			var pairs = q.substring(1).split("&");
			for (var i=0; i < pairs.length; i++) {
				if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
					return pairs[i].substring((pairs[i].indexOf("=")+1));
				}
			}
		}
		return "";
	}
}
/* fix for video streaming bug */
deconcept.SWFObjectUtil.cleanupSWFs = function() {
	var objects = document.getElementsByTagName("OBJECT");
	for (var i = objects.length - 1; i >= 0; i--) {
		objects[i].style.display = 'none';
		for (var x in objects[i]) {
			if (typeof objects[i][x] == 'function') {
				objects[i][x] = function(){};
			}
		}
	}
}
// fixes bug in some fp9 versions see http://blog.deconcept.com/2006/07/28/swfobject-143-released/
if (deconcept.SWFObject.doPrepUnload) {
	if (!deconcept.unloadSet) {
		deconcept.SWFObjectUtil.prepUnload = function() {
			__flash_unloadHandler = function(){};
			__flash_savedUnloadHandler = function(){};
			window.attachEvent("onunload", deconcept.SWFObjectUtil.cleanupSWFs);
		}
		window.attachEvent("onbeforeunload", deconcept.SWFObjectUtil.prepUnload);
		deconcept.unloadSet = true;
	}
}
/* add document.getElementById if needed (mobile IE < 5) */
if (!document.getElementById && document.all) { document.getElementById = function(id) { return document.all[id]; }}

/* add some aliases for ease of use/backwards compatibility */
var getQueryParamValue = deconcept.util.getRequestParameter;
var FlashObject = deconcept.SWFObject; // for legacy support
var SWFObject = deconcept.SWFObject;
/*** File js/SWFObjectUtils.js END ***/

/*** File js/shadowbox-lib-min.js BEGIN ***/
/*
     http://creativecommons.org/licenses/by-nc-sa/3.0/
*/
var Shadowbox={};
Shadowbox.lib=function(){var styleCache={};var camelRe=/(-[a-z])/gi;var camelFn=function(m,a){return a.charAt(1).toUpperCase()};var toCamel=function(style){var camel;if(!(camel=styleCache[style]))camel=styleCache[style]=style.replace(camelRe,camelFn);return camel};var view=document.defaultView;var alphaRe=/alpha\([^\)]*\)/gi;var setOpacity=function(el,opacity){var s=el.style;if(window.ActiveXObject){s.zoom=1;s.filter=(s.filter||"").replace(alphaRe,"")+(opacity==1?"":" alpha(opacity="+opacity*100+
")")}else s.opacity=opacity};return{adapter:"standalone",getStyle:function(){return view&&view.getComputedStyle?function(el,style){var v,cs,camel;if(style=="float")style="cssFloat";if(v=el.style[style])return v;if(cs=view.getComputedStyle(el,""))return cs[toCamel(style)];return null}:function(el,style){var v,cs,camel;if(style=="opacity"){if(typeof el.style.filter=="string"){var m=el.style.filter.match(/alpha\(opacity=(.+)\)/i);if(m){var fv=parseFloat(m[1]);if(!isNaN(fv))return fv?fv/100:0}}return 1}else if(style==
"float")style="styleFloat";var camel=toCamel(style);if(v=el.style[camel])return v;if(cs=el.currentStyle)return cs[camel];return null}}(),setStyle:function(el,style,value){if(typeof style=="string"){var camel=toCamel(style);if(camel=="opacity")setOpacity(el,value);else{if(camel=="height"&&parseInt(value)<0)value=0+"px";el.style[camel]=value}}else for(var s in style)this.setStyle(el,s,style[s])},get:function(el){return typeof el=="string"?document.getElementById(el):el},remove:function(el){el.parentNode.removeChild(el)},
getTarget:function(e){var t=e.target?e.target:e.srcElement;return t.nodeType==3?t.parentNode:t},getPageXY:function(e){var x=e.pageX||e.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft);var y=e.pageY||e.clientY+(document.documentElement.scrollTop||document.body.scrollTop);return[x,y]},preventDefault:function(e){if(e.preventDefault)e.preventDefault();else e.returnValue=false},keyCode:function(e){return e.which?e.which:e.keyCode},addEvent:function(el,name,handler){if(el.addEventListener)el.addEventListener(name,
handler,false);else if(el.attachEvent)el.attachEvent("on"+name,handler)},removeEvent:function(el,name,handler){if(el.removeEventListener)el.removeEventListener(name,handler,false);else if(el.detachEvent)el.detachEvent("on"+name,handler)},append:function(el,html){if(el.insertAdjacentHTML)el.insertAdjacentHTML("BeforeEnd",html);else if(el.lastChild){var range=el.ownerDocument.createRange();range.setStartAfter(el.lastChild);var frag=range.createContextualFragment(html);el.appendChild(frag)}else el.innerHTML=
html}}}();
/*** File js/shadowbox-lib-min.js END ***/

/*** File js/shadowbox-min.js BEGIN ***/
/*
     http://creativecommons.org/licenses/by-nc-sa/3.0/
*/
if(typeof Shadowbox=="undefined")throw"Unable to load Shadowbox, no base library adapter found";
(function(){var version="2.0";var options={animate:true,animateFade:true,animSequence:"wh",flvPlayer:"js/player/flvplayer.swf",modal:false,overlayColor:"#000",overlayOpacity:0.8,flashBgColor:"#000000",autoplayMovies:true,showMovieControls:true,slideshowDelay:0,resizeDuration:0.55,fadeDuration:0.35,displayNav:true,continuous:false,displayCounter:true,counterType:"default",counterLimit:10,viewportPadding:20,handleOversize:"resize",handleException:null,handleUnsupported:"link",initialHeight:160,initialWidth:320,
enableKeys:true,onOpen:null,onFinish:null,onChange:null,onClose:null,skipSetup:false,errors:{fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}},ext:{img:["png","jpg","jpeg","gif","bmp"],swf:["swf"],flv:["flv"],qt:["dv","mov","moov","movie","mp4"],wmp:["asf",
"wm","wmv"],qtwmp:["avi","mpg","mpeg"],iframe:["asp","aspx","cgi","cfm","htm","html","pl","php","php3","php4","php5","phtml","rb","rhtml","shtml","txt","vbs"]}};var SB=Shadowbox;var SL=SB.lib;var default_options;var RE={domain:/:\/\/(.*?)[:\/]/,inline:/#(.+)$/,rel:/^(light|shadow)box/i,gallery:/^(light|shadow)box\[(.*?)\]/i,unsupported:/^unsupported-(\w+)/,param:/\s*([a-z_]*?)\s*=\s*(.+)\s*/,empty:/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i};var cache=[];var gallery;var current;
var content;var content_id="shadowbox_content";var dims;var initialized=false;var activated=false;var slide_timer;var slide_start;var slide_delay=0;var ua=navigator.userAgent.toLowerCase();var client={isStrict:document.compatMode=="CSS1Compat",isOpera:ua.indexOf("opera")>-1,isIE:ua.indexOf("msie")>-1,isIE7:ua.indexOf("msie 7")>-1,isSafari:/webkit|khtml/.test(ua),isWindows:ua.indexOf("windows")!=-1||ua.indexOf("win32")!=-1,isMac:ua.indexOf("macintosh")!=-1||ua.indexOf("mac os x")!=-1,isLinux:ua.indexOf("linux")!=
-1};client.isBorderBox=client.isIE&&!client.isStrict;client.isSafari3=client.isSafari&&!!document.evaluate;client.isGecko=ua.indexOf("gecko")!=-1&&!client.isSafari;var ltIE7=client.isIE&&!client.isIE7;var plugins;if(navigator.plugins&&navigator.plugins.length){var detectPlugin=function(plugin_name){var detected=false;for(var i=0,len=navigator.plugins.length;i<len;++i)if(navigator.plugins[i].name.indexOf(plugin_name)>-1){detected=true;break}return detected};var f4m=detectPlugin("Flip4Mac");plugins=
{fla:detectPlugin("Shockwave Flash"),qt:detectPlugin("QuickTime"),wmp:!f4m&&detectPlugin("Windows Media"),f4m:f4m}}else{var detectPlugin=function(plugin_name){var detected=false;try{var axo=new ActiveXObject(plugin_name);if(axo)detected=true}catch(e){}return detected};plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}}var apply=function(o,e){for(var p in e)o[p]=e[p];return o};var isLink=function(el){return el&&
typeof el.tagName=="string"&&(el.tagName.toUpperCase()=="A"||el.tagName.toUpperCase()=="AREA")};SL.getViewportHeight=function(){var h=window.innerHeight;var mode=document.compatMode;if((mode||client.isIE)&&!client.isOpera)h=client.isStrict?document.documentElement.clientHeight:document.body.clientHeight;return h};SL.getViewportWidth=function(){var w=window.innerWidth;var mode=document.compatMode;if(mode||client.isIE)w=client.isStrict?document.documentElement.clientWidth:document.body.clientWidth;
return w};SL.createHTML=function(obj){var html="<"+obj.tag;for(var attr in obj){if(attr=="tag"||attr=="html"||attr=="children")continue;if(attr=="cls")html+=' class="'+obj["cls"]+'"';else html+=" "+attr+'="'+obj[attr]+'"'}if(RE.empty.test(obj.tag))html+="/>";else{html+=">";var cn=obj.children;if(cn)for(var i=0,len=cn.length;i<len;++i)html+=this.createHTML(cn[i]);if(obj.html)html+=obj.html;html+="</"+obj.tag+">"}return html};var ease=function(x){return 1+Math.pow(x-1,3)};var animate=function(el,p,
to,d,cb){var from=parseFloat(SL.getStyle(el,p));if(isNaN(from))from=0;if(from==to){if(typeof cb=="function")cb();return}var delta=to-from;var op=p=="opacity";var unit=op?"":"px";var fn=function(ease){SL.setStyle(el,p,from+ease*delta+unit)};if(!options.animate&&!op||op&&!options.animateFade){fn(1);if(typeof cb=="function")cb();return}d*=1E3;var begin=(new Date).getTime();var end=begin+d;var timer=setInterval(function(){var time=(new Date).getTime();if(time>=end){clearInterval(timer);fn(1);if(typeof cb==
"function")cb()}else fn(ease((time-begin)/d))},10)};var clearOpacity=function(el){var s=el.style;if(client.isIE){if(typeof s.filter=="string"&&/alpha/i.test(s.filter))s.filter=s.filter.replace(/[\w\.]*alpha\(.*?\);?/i,"")}else{s.opacity="";s["-moz-opacity"]="";s["-khtml-opacity"]=""}};var getComputedHeight=function(el){var h=Math.max(el.offsetHeight,el.clientHeight);if(!h){h=parseInt(SL.getStyle(el,"height"),10)||0;if(!client.isBorderBox)h+=parseInt(SL.getStyle(el,"padding-top"),10)+parseInt(SL.getStyle(el,
"padding-bottom"),10)+parseInt(SL.getStyle(el,"border-top-width"),10)+parseInt(SL.getStyle(el,"border-bottom-width"),10)}return h};var getPlayer=function(url){var m=url.match(RE.domain);var d=m&&document.domain==m[1];if(url.indexOf("#")>-1&&d)return"inline";var q=url.indexOf("?");if(q>-1)url=url.substring(0,q);if(RE.img.test(url))return"img";if(RE.swf.test(url))return plugins.fla?"swf":"unsupported-swf";if(RE.flv.test(url))return plugins.fla?"flv":"unsupported-flv";if(RE.qt.test(url))return plugins.qt?
"qt":"unsupported-qt";if(RE.wmp.test(url)){if(plugins.wmp)return"wmp";if(plugins.f4m)return"qt";if(client.isMac)return plugins.qt?"unsupported-f4m":"unsupported-qtf4m";return"unsupported-wmp"}else if(RE.qtwmp.test(url)){if(plugins.qt)return"qt";if(plugins.wmp)return"wmp";return client.isMac?"unsupported-qt":"unsupported-qtwmp"}else if(!d||RE.iframe.test(url))return"iframe";return"unsupported"};var handleClick=function(ev){var link;if(isLink(this))link=this;else{link=SL.getTarget(ev);while(!isLink(link)&&
link.parentNode)link=link.parentNode}if(link){SB.open(link);if(gallery.length)SL.preventDefault(ev)}};var toggleNav=function(id,on){var el=SL.get("shadowbox_nav_"+id);if(el)el.style.display=on?"":"none"};var buildBars=function(cb){var obj=gallery[current];var title_i=SL.get("shadowbox_title_inner");title_i.innerHTML=obj.title||"";var nav=SL.get("shadowbox_nav");if(nav){var c,n,pl,pa,p;if(options.displayNav){c=true;var len=gallery.length;if(len>1)if(options.continuous)n=p=true;else{n=len-1>current;
p=current>0}if(options.slideshowDelay>0&&hasNext()){pa=slide_timer!="paused";pl=!pa}}else c=n=pl=pa=p=false;toggleNav("close",c);toggleNav("next",n);toggleNav("play",pl);toggleNav("pause",pa);toggleNav("previous",p)}var counter=SL.get("shadowbox_counter");if(counter){var co="";if(options.displayCounter&&gallery.length>1)if(options.counterType=="skip"){var i=0,len=gallery.length,end=len;var limit=parseInt(options.counterLimit);if(limit<len){var h=Math.round(limit/2);i=current-h;if(i<0)i+=len;end=current+
(limit-h);if(end>len)end-=len}while(i!=end){if(i==len)i=0;co+='<a onclick="Shadowbox.change('+i+');"';if(i==current)co+=' class="shadowbox_counter_current"';co+=">"+ ++i+"</a>"}}else co=current+1+" "+SB.LANG.of+" "+len;counter.innerHTML=co}cb()};var hideBars=function(anim,cb){var obj=gallery[current];var title=SL.get("shadowbox_title");var info=SL.get("shadowbox_info");var title_i=SL.get("shadowbox_title_inner");var info_i=SL.get("shadowbox_info_inner");var close_top=SL.get("shadowbox_close_top");
var fn=function(){buildBars(cb)};var title_h=getComputedHeight(title);var info_h=getComputedHeight(info)*-1;if(anim){animate(title_i,"margin-top",title_h,0.35);animate(info_i,"margin-top",info_h,0.35,fn);animate(close_top,"margin-top",title_h,0.35)}else{SL.setStyle(title_i,"margin-top",title_h+"px");SL.setStyle(info_i,"margin-top",info_h+"px");SL.setStyle(close_top,"margin-top",title_h+"px");fn()}};var showBars=function(cb){var title_i=SL.get("shadowbox_title_inner");var info_i=SL.get("shadowbox_info_inner");
var close_top=SL.get("shadowbox_close_top");var title=SL.get("shadowbox_title");var t=title_i.innerHTML!="";if(!isColl){animate(title_i,"margin-top",0,0.35);animate(close_top,"margin-top",0,0.35)}else if(ltIE7)animate(title,"height","-30",0.35);else animate(title,"height",0,0.35);animate(info_i,"margin-top",0,0.35,cb)};var loadContent=function(){var obj=gallery[current];if(!obj)return;var changing=false;if(content){content.remove();changing=true}var p=obj.player=="inline"?"html":obj.player;if(typeof SB[p]!=
"function")SB.raise("Unknown player "+obj.player);content=new SB[p](content_id,obj);listenKeys(false);toggleLoading(true);hideBars(changing,function(){if(!content)return;if(!changing)SL.get("shadowbox").style.display="";var fn=function(){resizeContent(function(){if(!content)return;showBars(function(){if(!content)return;SL.get("shadowbox_body_inner").innerHTML=SL.createHTML(content.markup(dims));toggleLoading(false,function(){if(!content)return;if(typeof content.onLoad=="function")content.onLoad();
if(options.onFinish&&typeof options.onFinish=="function")options.onFinish(gallery[current]);if(slide_timer!="paused")SB.play();listenKeys(true)})})})};if(typeof content.ready!="undefined")var id=setInterval(function(){if(content){if(content.ready){clearInterval(id);id=null;fn()}}else{clearInterval(id);id=null}},100);else fn()});if(gallery.length>1){var next=gallery[current+1]||gallery[0];if(next.player=="img"){var a=new Image;a.src=next.content}var prev=gallery[current-1]||gallery[gallery.length-
1];if(prev.player=="img"){var b=new Image;b.src=prev.content}}};var setDimensions=function(height,width,resizable){resizable=resizable||false;var sb=SL.get("shadowbox_body");var h=height=parseInt(height);var w=width=parseInt(width);var view_h=SL.getViewportHeight();var view_w=SL.getViewportWidth();if(client.isIE){window.scroll(0,0);document.body.scroll="No";document.documentElement.style.overflow="hidden"}var border_w=parseInt(SL.getStyle(sb,"border-left-width"),10)+parseInt(SL.getStyle(sb,"border-right-width"),
10);var extra_w=border_w+2*options.viewportPadding;if(w+extra_w>=view_w)w=view_w-extra_w;var border_h=parseInt(SL.getStyle(sb,"border-top-width"),10)+parseInt(SL.getStyle(sb,"border-bottom-width"),10);var bar_h=getComputedHeight(SL.get("shadowbox_title"))+getComputedHeight(SL.get("shadowbox_info"));var extra_h=border_h+2*options.viewportPadding+bar_h;if(h+extra_h>=view_h)h=view_h-extra_h;var drag=false;var resize_h=height;var resize_w=width;var handle=options.handleOversize;if(resizable&&(handle==
"resize"||handle=="drag")){var change_h=(height-h)/height;var change_w=(width-w)/width;if(handle=="resize"){if(change_h>change_w)w=Math.round(width/height*h);else if(change_w>change_h)h=Math.round(height/width*w);resize_w=w;resize_h=h}else{var link=gallery[current];if(link)drag=link.player=="img"&&(change_h>0||change_w>0)}}dims={height:h+border_h+bar_h,width:w+border_w,inner_h:h,inner_w:w,top:(view_h-(h+extra_h))/2+options.viewportPadding,resize_h:resize_h,resize_w:resize_w,drag:drag}};var resizeContent=
function(cb){if(!content)return;setDimensions(content.height,content.width,content.resizable);if(cb)switch(options.animSequence){case "hw":adjustHeight(dims.inner_h,dims.top,true,function(){adjustWidth(dims.width,true,cb)});break;case "wh":adjustWidth(dims.width,true,function(){adjustHeight(dims.inner_h,dims.top,true,cb)});break;case "sync":default:adjustWidth(dims.width,true);adjustHeight(dims.inner_h,dims.top,true,cb)}else{adjustWidth(dims.width,false);adjustHeight(dims.inner_h,dims.top,false);
var c=SL.get(content_id);if(c){if(content.resizable&&options.handleOversize=="resize"){c.height=dims.resize_h;c.width=dims.resize_w}if(gallery[current].player=="img"&&options.handleOversize=="drag"){var top=parseInt(SL.getStyle(c,"top"));if(top+content.height<dims.inner_h)SL.setStyle(c,"top",dims.inner_h-content.height+"px");var left=parseInt(SL.getStyle(c,"left"));if(left+content.width<dims.inner_w)SL.setStyle(c,"left",dims.inner_w-content.width+"px")}}}};var adjustHeight=function(height,top,anim,
cb){height=parseInt(height);var sb=SL.get("shadowbox_body");if(anim)if(!isColl)animate(sb,"height",height,options.resizeDuration);else animate(sb,"height",1200,options.resizeDuration);else SL.setStyle(sb,"height",height+"px");var s=SL.get("shadowbox");if(anim)if(isColl)animate(s,"top","-5",options.resizeDuration,cb);else animate(s,"top",top,options.resizeDuration,cb);else{SL.setStyle(s,"top",top+"px");if(typeof cb=="function")cb()}};var adjustWidth=function(width,anim,cb){width=parseInt(width);var s=
SL.get("shadowbox");if(anim)if(!isColl)animate(s,"width",width,options.resizeDuration,cb);else animate(s,"width",1600,options.resizeDuration,cb);else{SL.setStyle(s,"width",width+"px");if(typeof cb=="function")cb()}};var listenKeys=function(on){if(!options.enableKeys)return;SL[(on?"add":"remove")+"Event"](document,"keydown",handleKey)};var handleKey=function(e){var code=SL.keyCode(e);SL.preventDefault(e);if(code==81||code==88||code==27)SB.close();else if(code==37)SB.previous();else if(code==39)SB.next();
else if(code==32)SB[typeof slide_timer=="number"?"pause":"play"]()};var toggleLoading=function(on,cb){var loading=SL.get("shadowbox_loading");if(on){loading.style.display="";if(typeof cb=="function")cb()}else{var p=gallery[current].player;var anim=p=="img"||p=="html";var fn=function(){loading.style.display="none";clearOpacity(loading);if(typeof cb=="function")cb()};if(anim)animate(loading,"opacity",0,options.fadeDuration,fn);else fn()}};var fixTop=function(){SL.get("shadowbox_container").style.top=
document.documentElement.scrollTop+"px"};var fixHeight=function(){SL.get("shadowbox_overlay").style.height=SL.getViewportHeight()+"px"};var hasNext=function(){return gallery.length>1&&(current!=gallery.length-1||options.continuous)};var toggleVisible=function(cb){var els,v=cb?"hidden":"visible";var hide=["select","object","embed"];for(var i=0;i<hide.length;++i){els=document.getElementsByTagName(hide[i]);for(var j=0,len=els.length;j<len;++j)els[j].style.visibility=v}var so=SL.get("shadowbox_overlay");
var sc=SL.get("shadowbox_container");var sb=SL.get("shadowbox");if(cb){SL.setStyle(so,{backgroundColor:options.overlayColor,opacity:0});if(!options.modal)SL.addEvent(so,"click",SB.close);if(ltIE7){fixTop();fixHeight();SL.addEvent(window,"scroll",fixTop)}sb.style.display="none";sc.style.visibility="visible";animate(so,"opacity",parseFloat(options.overlayOpacity),options.fadeDuration,cb)}else{SL.removeEvent(so,"click",SB.close);if(ltIE7)SL.removeEvent(window,"scroll",fixTop);sb.style.display="none";
animate(so,"opacity",0,options.fadeDuration,function(){sc.style.visibility="hidden";sb.style.display="";clearOpacity(so)})}};Shadowbox.init=function(opts){if(initialized)return;if(typeof SB.LANG=="undefined"){SB.raise("No Shadowbox language loaded");return}if(typeof SB.SKIN=="undefined"){SB.raise("No Shadowbox skin loaded");return}apply(options,opts||{});var markup=SB.SKIN.markup.replace(/\{(\w+)\}/g,function(m,p){return SB.LANG[p]});var bd=document.body||document.documentElement;SL.append(bd,markup);
if(ltIE7){SL.setStyle(SL.get("shadowbox_container"),"position","absolute");SL.get("shadowbox_body").style.zoom=1;var png=SB.SKIN.png_fix;if(png&&png.constructor==Array)for(var i=0;i<png.length;++i){var el=SL.get(png[i]);if(el){var match=SL.getStyle(el,"background-image").match(/url\("(.*\.png)"\)/);if(match)SL.setStyle(el,{backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+match[1]+",sizingMethod=scale);"})}}}for(var e in options.ext)if(typeof options.ext[e].join===
"function")RE[e]=new RegExp(".("+options.ext[e].join("|")+")s*$","i");else RE[e]=undefined;var id;SL.addEvent(window,"resize",function(){if(id){clearTimeout(id);id=null}id=setTimeout(function(){var s=SL.get("shadowbox");if(ltIE7)fixHeight();if(!isColl)resizeContent()},50)});if(!options.skipSetup)SB.setup();initialized=true};Shadowbox.loadSkin=function(skin,dir){if(!/\/$/.test(dir))dir+="/";skin=dir+skin+"/";if(!isColl){document.write('<link rel="stylesheet" type="text/css" href="'+skin+'skin.css">');
document.write("<scr"+'ipt type="text/javascript" src="'+skin+'skin.js"><\/script>')}else{document.write('<link rel="stylesheet" type="text/css" href="/css/skin/collec/skin.css">');document.write("<scr"+'ipt type="text/javascript" src="/css/skin/collec/skin.js"><\/script>')}};Shadowbox.loadLanguage=function(lang,dir){if(!/\/$/.test(dir))dir+="/";document.write("<scr"+'ipt type="text/javascript" src="'+dir+"shadowbox-"+lang+'.js"><\/script>')};Shadowbox.loadPlayer=function(players,dir){if(typeof players==
"string")players=[players];if(!/\/$/.test(dir))dir+="/";for(var i=0,len=players.length;i<len;++i)document.write("<scr"+'ipt type="text/javascript" src="'+dir+"shadowbox-"+players[i]+'.js"><\/script>')};Shadowbox.setup=function(links,opts){if(!links){var links=[];var a=document.getElementsByTagName("a"),rel;for(var i=0,len=a.length;i<len;++i){rel=a[i].getAttribute("rel");if(rel&&RE.rel.test(rel))links[links.length]=a[i]}}else if(!links.length)links=[links];var link;for(var i=0,len=links.length;i<len;++i){link=
links[i];if(typeof link.shadowboxCacheKey=="undefined"){link.shadowboxCacheKey=cache.length;SL.addEvent(link,"click",handleClick)}cache[link.shadowboxCacheKey]=this.buildCacheObj(link,opts)}};Shadowbox.buildCacheObj=function(link,opts){var href=link.href;var o={el:link,title:link.getAttribute("title"),player:getPlayer(href),options:apply({},opts||{}),content:href};var opt,l_opts=["player","title","height","width","gallery"];for(var i=0,len=l_opts.length;i<len;++i){opt=l_opts[i];if(typeof o.options[opt]!=
"undefined"){o[opt]=o.options[opt];delete o.options[opt]}}var rel=link.getAttribute("rel");if(rel){var match=rel.match(RE.gallery);if(match)o.gallery=escape(match[2]);var params=rel.split(";");for(var i=0,len=params.length;i<len;++i){match=params[i].match(RE.param);if(match)if(match[1]=="options")eval("apply(o.options, "+match[2]+")");else o[match[1]]=match[2]}}return o};Shadowbox.applyOptions=function(opts){if(opts){default_options=apply({},options);options=apply(options,opts)}};Shadowbox.revertOptions=
function(){if(default_options){options=default_options;default_options=null}};Shadowbox.open=function(obj,opts){this.revertOptions();if(isLink(obj))if(typeof obj.shadowboxCacheKey=="undefined"||typeof cache[obj.shadowboxCacheKey]=="undefined")obj=this.buildCacheObj(obj,opts);else obj=cache[obj.shadowboxCacheKey];if(obj.constructor==Array){gallery=obj;current=0}else{var copy=apply({},obj);if(!obj.gallery){gallery=[copy];current=0}else{current=null;gallery=[];var ci;for(var i=0,len=cache.length;i<len;++i){ci=
cache[i];if(ci.gallery){if(ci.content==obj.content&&ci.gallery==obj.gallery&&ci.title==obj.title)current=gallery.length;if(ci.gallery==obj.gallery)gallery.push(apply({},ci))}}if(current==null){gallery.unshift(copy);current=0}}}obj=gallery[current];if(obj.options||opts)this.applyOptions(apply(apply({},obj.options||{}),opts||{}));var match,r;for(var i=0,len=gallery.length;i<len;++i){r=false;if(gallery[i].player=="unsupported")r=true;else if(match=RE.unsupported.exec(gallery[i].player))if(options.handleUnsupported==
"link"){gallery[i].player="html";var s,a,oe=options.errors;switch(match[1]){case "qtwmp":s="either";a=[oe.qt.url,oe.qt.name,oe.wmp.url,oe.wmp.name];break;case "qtf4m":s="shared";a=[oe.qt.url,oe.qt.name,oe.f4m.url,oe.f4m.name];break;default:s="single";if(match[1]=="swf"||match[1]=="flv")match[1]="fla";a=[oe[match[1]].url,oe[match[1]].name]}var msg=SB.LANG.errors[s].replace(/\{(\d+)\}/g,function(m,i){return a[i]});gallery[i].content='<div class="shadowbox_message">'+msg+"</div>"}else r=true;else if(gallery[i].player==
"inline"){var match=RE.inline.exec(gallery[i].content);if(match){var el;if(el=SL.get(match[1]))gallery[i].content=el.innerHTML;else SB.raise("Cannot find element with id "+match[1])}else SB.raise("Cannot find element id for inline content")}if(r){gallery.splice(i,1);if(i<current)--current;else if(i==current)current=i>0?current-1:i;--i;len=gallery.length}}if(gallery.length){if(options.onOpen&&typeof options.onOpen=="function")options.onOpen(obj);if(!activated){setDimensions(options.initialHeight,options.initialWidth);
adjustHeight(dims.inner_h,dims.top,false);adjustWidth(dims.width,false);toggleVisible(loadContent)}else loadContent();activated=true}};Shadowbox.change=function(num){if(!gallery)return;if(!gallery[num])if(!options.continuous)return;else num=num<0?gallery.length-1:0;if(typeof slide_timer=="number"){clearTimeout(slide_timer);slide_timer=null;slide_delay=slide_start=0}current=num;if(options.onChange&&typeof options.onChange=="function")options.onChange(gallery[current]);loadContent()};Shadowbox.next=
function(){this.change(current+1)};Shadowbox.previous=function(){this.change(current-1)};Shadowbox.play=function(){if(!hasNext())return;if(!slide_delay)slide_delay=options.slideshowDelay*1E3;if(slide_delay){slide_start=(new Date).getTime();slide_timer=setTimeout(function(){slide_delay=slide_start=0;SB.next()},slide_delay);toggleNav("play",false);toggleNav("pause",true)}};Shadowbox.pause=function(){if(typeof slide_timer=="number"){var time=(new Date).getTime();slide_delay=Math.max(0,slide_delay-(time-
slide_start));if(slide_delay){clearTimeout(slide_timer);slide_timer="paused"}toggleNav("pause",false);toggleNav("play",true)}};Shadowbox.close=function(){if(!activated)return;if(client.isIE){document.body.scroll="Yes";document.documentElement.style.overflow="auto"}listenKeys(false);toggleVisible(false);if(content){content.remove();content=null}if(typeof slide_timer=="number")clearTimeout(slide_timer);slide_timer=null;slide_delay=0;if(options.onClose&&typeof options.onClose=="function")options.onClose(gallery[current]);
activated=false};isColl=false;Shadowbox.isCollection=function(pVal){isColl=pVal};Shadowbox.clearCache=function(){for(var i=0,len=cache.length;i<len;++i)if(cache[i].el){SL.removeEvent(cache[i].el,"click",handleClick);delete cache[i].el.shadowboxCacheKey}cache=[]};Shadowbox.getPlugins=function(){return plugins};Shadowbox.getOptions=function(){return options};Shadowbox.getCurrent=function(){return gallery[current]};Shadowbox.getVersion=function(){return version};Shadowbox.getClient=function(){return client};
Shadowbox.getContent=function(){return content};Shadowbox.getDimensions=function(){return dims};Shadowbox.raise=function(e){if(typeof options.handleException=="function")options.handleException(e);else throw e;}})();
/*** File js/shadowbox-min.js END ***/

/*** File js/functions.js BEGIN ***/
if(typeof Shadowbox != 'undefined'){
    var shadowboxLang = 'en';
	switch(coreLang) {
		case "EN": shadowboxLang = 'en';
		break;
		case "RU": shadowboxLang = 'ru';
		break;
		case "FR": shadowboxLang = 'fr';
		break;
		case "CN": shadowboxLang = 'zh-CN';
		break;
	}
	Shadowbox.loadLanguage(shadowboxLang, JS_EE_CDN_SERVER+'js/lang');
	Shadowbox.loadSkin('classic', JS_EE_CDN_SERVER+'css/skin');
	Shadowbox.loadPlayer(['img', 'swf'], JS_EE_CDN_SERVER+'js/player');
	//Shadowbox initialization
	addOnLoadEvent(function() {Shadowbox.init();});
}

function openSB ($content, $player, $title, $width, $height){
	Shadowbox.isCollection(false);
	
	Shadowbox.open({
		player:     $player,
		title:      $title,
		content:    $content,
		height:     $height,
		width:      $width
	});
}

function openSBCollection ($content, $player, $title, $width, $height){
	Shadowbox.isCollection(true);
	
	Shadowbox.open({
		player:     $player,
		title:      $title,
		content:    $content,
		height:     $height,
		width:      $width
	});
}

function openFS(url,name){
	var param = "status=no,location=no,scrollbars=no,directories=no,menubar=no,resizable=no,fullscreen=yes";
	var newWin = window.open(url,name,param);
	newWin.moveTo(0,0);
	newWin.resizeTo(screen.availWidth,screen.availHeight);
}

var originalSAVPrintLink = "";
function addCountryToLink(link) {
	if(originalSAVPrintLink == "") {
		originalSAVPrintLink = link.href;
	}
	var country = document.getElementById("cboCountry").value;
	var sign;
	if(originalSAVPrintLink.indexOf('?') != -1) {
		sign = "&";
	} else {
		sign = "?";
	}
	link.href = originalSAVPrintLink+sign+"country="+country;
}

// "getElementsByClassName" not defined in IE, so it was realized on JS
if(document.getElementsByClassName == undefined) {
	document.getElementsByClassName = function(cl) {
		var retnode = [];
		var myclass = new RegExp('\\b'+cl+'\\b');
		var elem = this.getElementsByTagName('*');
		for (var i = 0; i < elem.length; i++) {
			var classes = elem[i].className;
			if (myclass.test(classes)) {
				retnode.push(elem[i]);
			}
		}
		return retnode;
	}
};

addOnLoadEvent(function() {
	//add style to formbuilder submit button
	var elements = document.getElementsByClassName('fb_submit');
	var length = elements.length;
	for (i=0; i<length; i++) {
		var input = elements[i].getElementsByTagName('INPUT')[0];
		input.onmouseover = function () {
			this.parentNode.className = this.parentNode.className + ' fb_submit_hover';
		}
		input.onmouseout = function () {
			this.parentNode.className = this.parentNode.className.replace(' fb_submit_hover', '');
		}
	}
});


/*** File js/functions.js END ***/

/*** File js/site_effects.js BEGIN ***/
// Little Dreams Fundation

// DW FUNCTIONS ##########################################################

<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

/*** File js/site_effects.js END ***/

/*** File js/init_rw.js BEGIN ***/
//Auto login if user is remembered
if(readCookie('remember_user') && !readCookie('user_id')) {
	var rememberMeAjaxRequest = new ajax_son(JS_EE_HTTP + JS_ACTION_FILE);
	rememberMeAjaxRequest.onComplete = function() {
		if(rememberMeAjaxRequest.response == "1") {
			location.reload();
		}
	}
	rememberMeAjaxRequest.run("action=login_if_remembered");
}

//Define user contry
var userCountryByIp = '';
var onAjaxCountryGet = function() {};
var onAjaxCountryGet_events = [];
var userCountryFromCookies = false;
var cookieName = "userCountryByIp";
// 1) Search user-country in cookies, and if it will be founded: set it into js-global var, set mark that it was got from cookie and ajax-request does not needed.
// 2) If in cookies user-country does not exist then make ajax-request to get this one
// 3) Save it into cookie, set it into js-global var, init event "onAjaxCountryGet"
var countryCookiePos = document.cookie.indexOf(cookieName+'=');
if(countryCookiePos != -1) {
	userCountryByIp = document.cookie.substr(countryCookiePos+cookieName.length+1, 2);
	userCountryFromCookies = true;
} else {
	addOnLoadEvent(function() {
		var ajax_get_country = new ajax_son(JS_EE_HTTP + JS_ACTION_FILE);
		ajax_get_country.onComplete = function() {
			userCountryByIp = ajax_get_country.response;
			document.cookie = cookieName + "=" + userCountryByIp;
			onAjaxCountryGet();
			for(var i=0; i<onAjaxCountryGet_events.length; i++) {
				onAjaxCountryGet_events[i]();
			}
			userCountryFromCookies = true;
		}
		ajax_get_country.run("action=get_user_country_by_ip");
	});
}

// iPhone/iPod fixes
if(is_mobile) {
	// For Mobile-version open sun-menus of main menu by mouser-click
	addOnLoadEvent(function prepare_main_menu_for_mobile() {
		var main_menu = document.getElementById("main_menu");
		if(main_menu) {
			var main_menu_links = main_menu.getElementsByTagName('a');
			for(var i=0; i<main_menu_links.length; i++) {
				if(main_menu_links[i].id.indexOf("main_menu_item_link_")!=-1) {
					main_menu_links[i].real_href = main_menu_links[i].href;
					main_menu_links[i].href = "#";
					addOnClickEvent(main_menu_links[i], function () {
						var this_subitem_id = this.id.substr(20);
						for(var i=0; i<main_menu_links.length; i++) {
							if(main_menu_links[i].id.indexOf("main_menu_item_link_")!=-1) {
								var subitem_id = main_menu_links[i].id.substr(20);
								var submenu = document.getElementById("submenu_items_list_"+subitem_id);
								if(subitem_id==this_subitem_id) {
									submenu.style.display = "block";
									this.href = this.real_href;
								} else {
									submenu.style.display = "none";
								}
							}
						}
						return false;
					});
				}
			}
		}
	});

	// JS-scrolling fix: For iPhone/iPod should be used "css/scroll_ipod_fix.css"
	document.write('<link rel="stylesheet" type="text/css" href="'+JS_EE_HTTP+'css/scroll_ipod_fix.css" />');
}

var JSMenu_items = [];

function JSMenu_addMenuItem(item)
{
	JSMenu_items.push(item);
}

function JSMenu_getMenu()
{
	var ajax = new ajax_son(JS_EE_HTTP + JS_ACTION_FILE);

	ajax.onComplete = function() {
		eval("var r = " + ajax.response);
		if (r.success) {
			for (i in r.data) {
				if (typeof r.data[i].id != 'undefined') {
					document.getElementById(r.data[i].id).innerHTML = r.data[i].content;
				}
			}
		}
	}
	ajax.run('action=JSMenu_getMenu&items='+JSMenu_items.join(',')+'&language='+coreLang);
}
/*** File js/init_rw.js END ***/
/***
Statistic:
js/mobile.js SUCCESS
js/layout_functions.js SUCCESS
js/ajax-son.js SUCCESS
js/flash_detect_functions.js SUCCESS
js/LibUtils.js SUCCESS
js/SWFObjectUtils.js SUCCESS
js/shadowbox-lib-min.js SUCCESS
js/shadowbox-min.js SUCCESS
js/functions.js SUCCESS
js/site_effects.js SUCCESS
js/init_rw.js SUCCESS
***/